﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Sharp.Infrastructure.Interfaces
{
    /// <summary>
    /// 契约的标记
    /// </summary>
    public class ContractTagAttribute : Attribute
    {
        /// <summary>
        /// 标记
        /// </summary>
        public ContractTagEnum Tag { get; set; }


    }
    /// <summary>
    /// 标记枚举
    /// </summary>
    public enum ContractTagEnum
    {
        /// <summary>
        /// 无
        /// </summary>
        None = 0,
        /// <summary>
        /// 验证
        /// </summary>
        Authorize = 1,
        /// <summary>
        /// 允许匿名
        /// </summary>
        AllowAnonymous=2
    }
}
